package com.wfh.aigenerator;

import dev.langchain4j.community.store.embedding.redis.spring.RedisEmbeddingStoreAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

/**
 * @author fenghuanwang
 */
@MapperScan(basePackages = "com.wfh.aigenerator.mapper")
@SpringBootApplication(exclude = RedisEmbeddingStoreAutoConfiguration.class)
@EnableCaching
public class AigeneratorApplication {

    // 在主类或任意类的静态块中
    static {
        System.setProperty("langchain4j.http-client.type", "spring-rest-client");
    }

    public static void main(String[] args) {
        SpringApplication.run(AigeneratorApplication.class, args);
    }

}
